obj = error.o queue.o tcp_listen.o http_conn.o thread_pool.o tw_timer.o time_wheel.o main.o
miniHttpd: $(obj)
	cc -o miniHttpd $(obj) -lpthread
error.o: error.c error.h
	cc -c error.c -Wall
queue.o: queue.c queue.h
	cc -c queue.c -Wall
tcp_listen.o: tcp_listen.c tcp_listen.h
	cc -c tcp_listen.c -Wall
http_conn.o: http_conn.c http_conn.h
	cc -c http_conn.c -Wall
thread_pool.o: thread_pool.c thread_pool.h
	cc -c thread_pool.c -Wall
tw_timer.o: tw_timer.c tw_timer.h
	cc -c tw_timer.c -Wall
time_wheel.o: time_wheel.c time_wheel.h
	cc -c time_wheel.c -Wall
main.o: main.c
	cc -c main.c -Wall

clean:
	-rm miniHttpd $(obj)
